package com.ps.property;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel(description = "用户留言信息")
@Data
@NoArgsConstructor
public class TUserMessage {
  @ApiModelProperty(value = "用户留言ID",required = true)
//  @NotBlank(message = "用户留言ID不能为空")
  private int messageId;

  @ApiModelProperty(value = "联系人",required = true)
  @NotBlank(message = "联系人不能为空")
  private String contacts;

  @ApiModelProperty(value = "联系方式",required = true)
  @NotBlank(message = "联系方式不能为空")
  private String contactWay;

  @ApiModelProperty(value = "留言内容",required = true)
  @NotBlank(message = "留言内容不能为空")
  private String messageContents;

  @ApiModelProperty(value = "反馈内容",required = true)
  @NotBlank(message = "反馈内容不能为空")
  private String feedbackContent;

  @ApiModelProperty(value = "状态(1.用户提交)",required = true)
  @NotNull(message = "状态不能为空")
  private int state;

  @ApiModelProperty(value = "反馈时间",required = true)
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date feedbackTime;

  @ApiModelProperty(value = "创建时间",required = true)
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date createTime;

  @ApiModelProperty(value = "更新时间",required = true)
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date refreshTime;

}
